DFA for string with even no. of